﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020005AF RID: 1455
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class FinishQuestScRsp : IMessage<FinishQuestScRsp>, IMessage, IEquatable<FinishQuestScRsp>, IDeepCloneable<FinishQuestScRsp>, IBufferMessage
	{
		// Token: 0x170012A6 RID: 4774
		// (get) Token: 0x0600416B RID: 16747 RVA: 0x000B2DD8 File Offset: 0x000B0FD8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<FinishQuestScRsp> Parser
		{
			get
			{
				return FinishQuestScRsp._parser;
			}
		}

		// Token: 0x170012A7 RID: 4775
		// (get) Token: 0x0600416C RID: 16748 RVA: 0x000B2DDF File Offset: 0x000B0FDF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return FinishQuestScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170012A8 RID: 4776
		// (get) Token: 0x0600416D RID: 16749 RVA: 0x000B2DF1 File Offset: 0x000B0FF1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return FinishQuestScRsp.Descriptor;
			}
		}

		// Token: 0x0600416E RID: 16750 RVA: 0x000B2DF8 File Offset: 0x000B0FF8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FinishQuestScRsp()
		{
		}

		// Token: 0x0600416F RID: 16751 RVA: 0x000B2E00 File Offset: 0x000B1000
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FinishQuestScRsp(FinishQuestScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06004170 RID: 16752 RVA: 0x000B2E25 File Offset: 0x000B1025
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FinishQuestScRsp Clone()
		{
			return new FinishQuestScRsp(this);
		}

		// Token: 0x170012A9 RID: 4777
		// (get) Token: 0x06004171 RID: 16753 RVA: 0x000B2E2D File Offset: 0x000B102D
		// (set) Token: 0x06004172 RID: 16754 RVA: 0x000B2E35 File Offset: 0x000B1035
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x06004173 RID: 16755 RVA: 0x000B2E3E File Offset: 0x000B103E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as FinishQuestScRsp);
		}

		// Token: 0x06004174 RID: 16756 RVA: 0x000B2E4C File Offset: 0x000B104C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(FinishQuestScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06004175 RID: 16757 RVA: 0x000B2E7C File Offset: 0x000B107C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06004176 RID: 16758 RVA: 0x000B2EBB File Offset: 0x000B10BB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06004177 RID: 16759 RVA: 0x000B2EC3 File Offset: 0x000B10C3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06004178 RID: 16760 RVA: 0x000B2ECC File Offset: 0x000B10CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(64);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06004179 RID: 16761 RVA: 0x000B2F00 File Offset: 0x000B1100
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600417A RID: 16762 RVA: 0x000B2F3E File Offset: 0x000B113E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(FinishQuestScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600417B RID: 16763 RVA: 0x000B2F6F File Offset: 0x000B116F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600417C RID: 16764 RVA: 0x000B2F78 File Offset: 0x000B1178
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 64U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040019BC RID: 6588
		private static readonly MessageParser<FinishQuestScRsp> _parser = new MessageParser<FinishQuestScRsp>(() => new FinishQuestScRsp());

		// Token: 0x040019BD RID: 6589
		private UnknownFieldSet _unknownFields;

		// Token: 0x040019BE RID: 6590
		public const int RetcodeFieldNumber = 8;

		// Token: 0x040019BF RID: 6591
		private uint retcode_;
	}
}
